#!/bin/sh

echo "hello world~~"
echo "20241018"  > /data/log_version.txt

while true
do
if cmd wifi status | grep "Wifi is connected to" | grep -q '^Wifi is connected to'; then
	echo "wifi status is ok"
	sleep 60
else
	echo "wifi is not connected"
	cmd wifi set-wifi-enabled disabled
	sleep 10
	cmd wifi set-wifi-enabled enabled
	sleep 20
fi
done
